<?php


namespace App\Http\Controllers\android\validate;


use Illuminate\Support\Facades\Validator;

class File
{
    public static function getFiles($param){
        $rules = [
            'type'=>'required',
        ];
        $msg = [
            'type.required'=>'类型为空',
        ];
        return Validator::make($param,$rules,$msg)->errors()->all();
    }

}